<table border="0" class="bread-crumb">
	<tr>
		<td style="padding-left:8px;"><?php echo $this->partial('breadcrum-menu.phtml', array('new_orders' => $this->new_orders, 'id_store' => $this->store->id)) ?></td>
		<td style="text-align: right;">
			<a class="underline non_space" href="<?php echo $this->url(array('module' => 'store','controller' => 'product', 'action' => 'create', 'id_store' => $this->store->id), null, true); ?>">
				<img src="img/add.png" class="bordernone" height="11" width="11" /><?php echo $this->translate('NEW_PRODUCT_LABEL') ?>
			</a>
		</td>
	</tr>
</table>

<h2 class="form_header"><?php echo $this->translate($this->form_header);?></h2>
<?php echo $this->form ?>
<script type="text/javascript">
	$("#<?php echo $this->form->getId() ?>").ymFormProduct(
		{
			'tiny_mce_url':'<?php echo REPOSITORY_URL.'/javascript/tiny_mce/tiny_mce.js' ?>',
			'cancel-url':'<?php echo $this->form->getCancelUrl() ?>',
			'image-description-template': '<?php echo YouNet_Util::htmlToJs($this->partial('product/template/image-category-widget.phtml',array()))?>',
			'get-system-categories-url': '<?php echo $this->url(array('action' => 'get-system-categories')) ?>',
			'get-custom-categories-url': '<?php echo $this->url(array('action' => 'get-custom-categories')) ?>',
			'create-form-template': '<?php echo YouNet_Util::htmlToJs($this->partial('product/template/create-form-template.phtml',array('store' => $this->store)))?>',
			'label' : {
				'select': '<?php echo $this->translate('SELECT') ?>',
				'add-more':'<?php echo $this->translate('PRODUCT_IMAGE_ADD_MORE') ?>',
				'add-new-category':'<?php echo $this->translate('PRODUCT_ADD_NEW_CATEGORY') ?>',
				'title-category-create': '<?php echo $this->translate('CATEGORY_CREATE') ?>'
			}
		}
	);
	addTab("<?php echo Core_Util::escapeForJS($this->store->getName()) ?>",'<?php echo $this->url(array('action' => 'list','id' => null))?>');
	$('#name').focus();
</script>
